#!/usr/bin/env python
#program autoversion

if __name__=='__main__':
	f=open('version.conf','r')
	old_v=f.readline().strip(' \r\n');
	v = old_v.split(' ')
	f.close()
	name=v[0]
	version=v[1].split('.')
	new_v='%s %s.%s.%s.%d' % (v[0], version[0], version[1], version[2], int(version[3]) + 1)
	
	f=open('version.conf','w')
	f.write(new_v)
	f.close()
	print 'new:%s' % new_v